package edu.friday.mapper;

import edu.friday.model.SysRole;

import java.util.List;
import java.util.Map;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Long roleId);

    int deleteByIds(Long[] roleIds);

    int insert(SysRole record);

    int insertUserRole(Map<String,Object> map);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long roleId);

    List<SysRole> selectAll(SysRole record);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<Long> selectRoleIdsByUserId(Long userId);
}